const mongoose=require('mongoose');
const config=require('../config/config')
const User=require('./user.server.model');
const Post=require('./post.server.model');
const Comment=require('./comment.server.model');
const Archive=require('./archive.server.model');
const Message=require('./message.server.model');
const App=require('./app.server.model');
const Auth=require('./auth.server.model');

mongoose.Promise=global.Promise;
mongoose.connect(config.mongodbUri,{useMongoClient:true});

module.exports={
    User,
    Post,
    Comment,
    Archive,
    Message,
    App,
    Auth
};